.class public Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;
.super Ljava/lang/Object;
.source "TFTextureInfo.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/tiffany/world/TFTextureInfo;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "TFTextureLayer"
.end annotation


# instance fields
.field bCalcCoord:Z

.field bTexturized:Z

.field bmp:Landroid/graphics/Bitmap;

.field private coordRatioHeight:F

.field private coordRatioWidth:F

.field fileName:Ljava/lang/String;

.field private height:I

.field magicKey:I

.field owner:Lcom/nemustech/tiffany/world/TFModel;

.field private quantitated_height:I

.field private quantitated_width:I

.field resource_id:I

.field resources:Landroid/content/res/Resources;

.field texture_name:I

.field final synthetic this$0:Lcom/nemustech/tiffany/world/TFTextureInfo;

.field private width:I


# direct methods
.method public constructor <init>(Lcom/nemustech/tiffany/world/TFTextureInfo;)V
    .locals 1
    .parameter

    .prologue
    .line 20
    iput-object p1, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->this$0:Lcom/nemustech/tiffany/world/TFTextureInfo;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 33
    const/4 v0, -0x1

    iput v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->resource_id:I

    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 20
    iget v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->coordRatioWidth:F

    return v0
.end method

.method static synthetic access$100(Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 20
    iget v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->coordRatioHeight:F

    return v0
.end method


# virtual methods
.method public getHeight(Z)I
    .locals 1
    .parameter "quantitated"

    .prologue
    .line 48
    if-eqz p1, :cond_0

    iget v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->quantitated_height:I

    :goto_0
    return v0

    :cond_0
    iget v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->height:I

    goto :goto_0
.end method

.method public getWidth(Z)I
    .locals 1
    .parameter "quantitated"

    .prologue
    .line 44
    if-eqz p1, :cond_0

    iget v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->quantitated_width:I

    :goto_0
    return v0

    :cond_0
    iget v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->width:I

    goto :goto_0
.end method

.method public setHeight(I)V
    .locals 2
    .parameter "h"

    .prologue
    .line 58
    iput p1, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->height:I

    .line 59
    invoke-static {p1}, Lcom/nemustech/tiffany/world/TFUtils;->getTextureLength(I)I

    move-result v0

    iput v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->quantitated_height:I

    .line 60
    iget v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->height:I

    int-to-float v0, v0

    iget v1, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->quantitated_height:I

    int-to-float v1, v1

    div-float/2addr v0, v1

    iput v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->coordRatioHeight:F

    .line 61
    return-void
.end method

.method public setWidth(I)V
    .locals 2
    .parameter "w"

    .prologue
    .line 52
    iput p1, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->width:I

    .line 53
    invoke-static {p1}, Lcom/nemustech/tiffany/world/TFUtils;->getTextureLength(I)I

    move-result v0

    iput v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->quantitated_width:I

    .line 54
    iget v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->width:I

    int-to-float v0, v0

    iget v1, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->quantitated_width:I

    int-to-float v1, v1

    div-float/2addr v0, v1

    iput v0, p0, Lcom/nemustech/tiffany/world/TFTextureInfo$TFTextureLayer;->coordRatioWidth:F

    .line 55
    return-void
.end method
